-- GENERATED SPELL FOR [Sunblade Vindicator] --


function spell0_25369(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(46559,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25369', 0, 1)
end

function spell1_25369(pUnit, Event) --@Mortal Strike,n/a--
pUnit:FullCastSpellOnTarget(39171,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25369', 5331, 1)
end

function Sorts_25369(pUnit, Event)
local choix_sorts_25369 = math.random(0, 1)
if choix_sorts_25369 == 0 then
pUnit:RegisterEvent('spell0_25369', 1, 1)
end
if choix_sorts_25369 == 1 then
pUnit:RegisterEvent('spell1_25369', 1, 1)
end
end

function mob25369_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_25369', math.random(1500, 3000), 1)
end

function mob25369_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25369_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25369_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(25369, 1, 'mob25369_Action')
RegisterUnitEvent(25369, 2, 'mob25369_Leave')
RegisterUnitEvent(25369, 3, 'mob25369_Kill')
RegisterUnitEvent(25369, 4, 'mob25369_Die')
